package com.zhangtai.modules.vo;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import com.zhangtai.utils.Excel.ExcelAnnotation;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class ImportCredentialVo {
    @ExcelAnnotation(rowName="员工工号")
    private String code;
    @ExcelAnnotation(rowName="员工姓名")
    private String name;

    /**
     *
     */
    @ExcelAnnotation(rowName="证书编号")
    @ApiModelProperty("证书编号")
    private String credentialNo;
    /**
     *
     */
    @ExcelAnnotation(rowName="管理编号")
    @ApiModelProperty("管理编号")
    private String mangerNo;
    /**
     * 授予时间
     */
    @ExcelAnnotation(rowName="授予时间")
    @ApiModelProperty("授予时间")
    private Date startTime;
    /**
     * 到期时间
     */
    @ExcelAnnotation(rowName="到期时间")
    @ApiModelProperty("到期时间")
    private Date endTime;
    /**
     * 证书级别
     */
    @ExcelAnnotation(rowName="证书级别")
    @ApiModelProperty("证书级别")
    private String credentialLevel;
    /**
     * 职称系列
     */
    @ExcelAnnotation(rowName="职称系列")
    @ApiModelProperty("职称系列")
    private String jobSeries;
    /**
     * 资格名称
     */
    @ExcelAnnotation(rowName="资格名称")
    @ApiModelProperty("资格名称")
    private String credentialName;
    /**
     * 专业
     */
    @ExcelAnnotation(rowName="专业")
    @ApiModelProperty("专业")
    private String profession;
    /**
     * 批准机关
     */
    @ExcelAnnotation(rowName="批准机关")
    @ApiModelProperty("批准机关")
    private String approvalAuthority;
    /**
     * 注册单位
     */
    @ExcelAnnotation(rowName="注册单位")
    @ApiModelProperty("注册单位")
    private String registerOrg;
    /**
     * 是否年审
     */
    @ApiModelProperty("是否年审")
    @ExcelAnnotation(rowName="是否年审")
    private String isAudit;


    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    @ApiModelProperty("挂靠单位")
    @ExcelAnnotation(rowName="挂靠单位")
    private String unitName;
    @ExcelAnnotation(rowName="补贴金额")
    private String allowance;
    @ExcelAnnotation(rowName="开始发放时间")
    private Date allowanceTime;
    @ExcelAnnotation(rowName="原因")
    private String reason;
}
